<template>
	<view>
		<!-- 分享，返回 -->
		<view class="option">
			<uni-icons type="redo" size="30"></uni-icons>
			<uni-icons class="icon" type="closeempty" size="30" @click="goBack"></uni-icons>

		</view>
		<!-- 内容 -->
		<view class="content">
			<view class="banner">
				<image src="https://placehold.co/350x200"></image>
			</view>
			<h1 class="title">芒芒甘露冰棒</h1>
			<p>
				<text class="new-tag">新品</text>
				<text class="df-tag">含乳制品</text>
			</p>
			<p class="desc">产品描述</p>
			<p class="remark">
				人气多肉芒芒甘露变身冰棒。爽口芒芒冰壳中夹有爱文芒果果肉与酸甜西柚果粒，搭配椰奶冰淇淋，更添丝滑口感。过敏原提醒:含乳制品，可能含花生、蛋、坚果、含麸质的谷物、大豆制品
			</p>
		</view>
		<view style="width: 100%; height: 1rpx; background-color: #f3f3f3; margin-top: 10rpx;"></view>
		<!-- 价格仪表旁 -->
		<view class="price-option">
			<view class="left">
				￥18
			</view>
			<view class="right">
				<image src="/static/jiahao.png"></image>
				<text>1</text>
				<image src="/static/jianhao.png"></image>
			</view>
		</view>
		<view class="btn">
			加入购物车
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {}
		},
		methods: {
			goBack() {
				uni.navigateBack()
			}
		}
	}
</script>

<style scoped lang="less">
	.btn {
		background-color: #dba871;
		color: #fff;
		width: 90%;
		margin: 0px auto;
		text-align: center;
		height: 100rpx;
		line-height: 100rpx;
		border-radius: 10rpx;
		font-size: 18px;
		margin-top: 100px;
		overflow: hidden;
	}

	.price-option {
		padding: 20rpx;
		display: flex;
		justify-content: space-between;

		.left {}

		.right {
			display: flex;
			justify-content: center;
			align-items: center;

			image {
				width: 22px;
				height: 22px;
				padding: 20rpx;
			}
		}
	}

	.content {
		.banner {
			text-align: center;
			margin: 0px auto;

			image {
				width: 600rpx;
				height: 400rpx;
			}
		}

		.title {
			font-size: 18px;
			font-weight: 500;
			padding: 0px 20rpx;
			margin-bottom: 20rpx;
		}

		p {
			padding: 0px 20rpx;

			.new-tag {
				background-color: #eeffe8;
				color: #70b309;
				font-size: 15px;
				margin-right: 20rpx;
				padding: 5rpx;
			}

			.df-tag {
				background-color: #e9e9e9;
				color: #b5b5b5;
				font-size: 15px;
				padding: 5rpx;
			}
		}

		.desc {
			font-size: 18px;
			color: #8f8f8f;
			padding: 20rpx;
		}

		.remark {
			font-size: 15px;
			color: #8f8f8f;
			padding-left: 20rpx;
			padding-right: 20rpx;
		}
	}

	.option {
		text-align: right;
		margin-top: 180rpx;

		.icon {
			margin: 0px 30rpx;
		}
	}
</style>